package com.qqt.csr.im.entity.msg.item;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * @Author: yang hao
 * @Date: 2024/10/16 17:14
 * @Description: 图像信息
 **/
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
@Accessors(chain = true)
@Schema(description = "图像信息")
public class ImageInfo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "1:原图, 2:缩略图")
    private String type;

    @Schema(description = "图片数据大小，单位：字节")
    private String size;

    @Schema(description = "图片宽度，单位为像素")
    private String width;

    @Schema(description = "图片高度，单位为像素")
    private String height;

    @Schema(description = "图片下载地址")
    private String url;

}
